﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("请输入您要使用的机器人：炒菜/上菜");
            string ty = Console.ReadLine();
            Choose(ty);
            
            

        }
        public static void Choose(string ty)
        {
            Robot add = new CookRobot("小七", "烹饪机器人"); 
            Robot add2 = new DeliveryRobot();
            if (ty == "炒菜")
            {
                add.Working();               
            }
            else if (ty == "上菜")
            {
                add2.Working();
            }
            
        }
    }
}
